-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Mainboard page #14
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some small details
I think we may want to use this crate like how osrelease is pulled: |
It looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Dexter Reed <[email protected]>
@sungsphinx I need to get it to build on 24.10 for testing on my end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I don't know how to trim out more content @sungsphinx but this at least gets a nice starting point. |
I don’t believe it has more info than what’s needed, is just the right amount imo |
@edfloreshz I don't think it should show stuff like Operating System, Icon Name and Static Hostname, etc. Just motherboard related info. @ahoneybun Maybe we could parse a json output from hostnamectl --json={pretty or short} |
|
Should have mentioned certain only lines/blocks/whatever it is in JSON files that relate to the motherboard lol. |
It looks like I can't seem to build the project though:
|
I had the same when I was attempting the Hardware Security page (#6), I think the command has a bit of a delay, and rust decides: |
How about getting the JSON a de-serializing it to a struct that only contains the fields we need? |
That's fine I just don't know how to do that, I can certainly change the output to JSON though! |
Refer to this, you can read a JSON and access specific untyped values by key. |
This is just WIP as it does currently error out on the page.